package com.lzq.principle.dependency;

/**
 * @author modify
 * @date 2022/11/4
 */
public class Computer {

    public Cpu cpu;
    public HardDesk hardDesk;
    public Memory memory;


    public void setCpu(Cpu cpu) {
        this.cpu = cpu;
    }

    public void setHardDesk(HardDesk hardDesk) {
        this.hardDesk = hardDesk;
    }

    public void setMemory(Memory memory) {
        this.memory = memory;
    }

    public Cpu getCpu() {
        return cpu;
    }

    public HardDesk getHardDesk() {
        return hardDesk;
    }

    public Memory getMemory() {
        return memory;
    }


}
